<include file="Public:header" />
<div class="page-member subpage">
    <div class="form-header">
        <div>
            <div class="line1">
                <div class="fl"><h3>角色信息详情 / {$role.name}</h3></div>
                <div class="fr hidden">
                    <form class="search-form" method="post" action="">
                        <input name="field" value="{$context.field}" type="hidden" />
                        <input name="value" value="{$context.value}" type="hidden" />
                        <input name="page" value="{$context.page}" type="hidden" />
                        <input name="order_field" value="{$context.order_field}" type="hidden" />
                        <input name="order_sort" value="{$context.order_sort}" type="hidden" />
                        <input name="offset" value="{$context.offset}" type="hidden" />
                        <input name="id" value="{$context.id}" type="hidden" />
                    </form>
                </div>
            </div>
            <div class="line2">
                <!-- 编辑按钮组 -->
                <div class="fl form-btn-group btn-group-edit">
                    <in name="$x|default='01-01-04'" value="$rightsCode">
                        <button onclick="action_edit();" class="btn-save btn-highlight">编 辑</button>
                        <else />
                        <button class="btn-create btn-disable" disabled="disabled">编 辑</button>
                    </in>
                    <span>或</span>
                    <a class="linkBtn btn-abort" href="/admin/role/add">创建</a>
                </div>
                <!-- 保存按钮组 -->
                <div class="fl form-btn-group btn-group-save hidden">
                    <button onclick="action_save();" class="btn-save btn-highlight">保 存</button>
                    <span>或</span>
                    <a class="linkBtn btn-abort" onclick="action_abort();" href="javascript:void(0);">放弃</a>
                </div>
                <div class="fl form-btn-more">
                    <button class="btn-normal btn-more">
                        更多操作<i class="drop-down"></i>
                    </button>
                    <ul class="more-action hidden">
                        <in name="$x|default='02-01-04'" value="$rightsCode">
                            <li><a onclick="action_del2();" href="javascript:void(0);">删 除</a></li>
                        </in>
                    </ul>
                </div>
                <div class="fr form-search-count">
                    <span class="index">{$context.index}/{$page.total}</span>
                    <button onclick="ItemJump({$page.prev.id}, {$page.prev.offset});" class="btn-normal">上一条</button>
                    <button onclick="ItemJump({$page.next.id}, {$page.next.offset});" class="btn-normal">下一条</button>
                </div>
            </div>
        </div>
    </div>
    <div class="form-box2" style="margin-bottom:0;">
        <div style="border-bottom:0;padding-bottom:0;">
            <form id="roleForm" method="post" action="">
                <!--表单相关原始信息存储-->
                <input type="hidden" name="old_rights" value="{$role.rights}" />
                <table class="form">
                    <tr>
                        <th width="20%">角色编码<span class="hint">*</span></th>
                        <td width="30%" field="code">{$role.code}</td>
                        <th width="20%">角色名称<span class="hint">*</span></th>
                        <td field="name">{$role.name}</td>
                    </tr>
                </table>
            </form>
        </div>
    </div>
    <div class="sub-listview" style="padding-top:20px;height:435px;">
        <ul class="ui-tabs">
            <li class="selected" target="tabs-business">业务管理</li>
            <li target="tabs-system">系统管理</li>
        </ul>
        <div style="padding-left:10px;margin-top:10px;" class="tabs-item tabs-business">
            <volist name="business" id="vo">
                <fieldset>
                    <legend>{$vo.name}</legend>
                    <volist name="vo.sub" id="vo2" key="index">
                        <if condition="$index%3 eq 1"><div class="block"></if>
                        <if condition="$vo2.checked eq true">
                            <input disabled="disabled" checked="checked" name="item" value="{$vo2.id}" type="checkbox" />
                            <else />
                            <input disabled="disabled" name="item" value="{$vo2.id}" type="checkbox" />
                        </if>
                        <label>{$vo2.name}</label>
                        <if condition="$index%3 eq 0"></div></if>
                    </volist>
                </fieldset>
            </volist>
        </div>
        <div style="padding-left:10px;margin-top:10px;" class="tabs-item tabs-system hidden">
            <volist name="system" id="vo">
                <fieldset>
                <legend>{$vo.name}</legend>
                <volist name="vo.sub" id="vo2" key="index">
                        <if condition="$index%3 eq 1"><div class="block"></if>
                        <if condition="$vo2.checked eq true">
                            <input disabled="disabled" checked="checked" name="item" value="{$vo2.id}" type="checkbox" />
                            <else />
                            <input disabled="disabled" name="item" value="{$vo2.id}" type="checkbox" />
                        </if>
                        <label>{$vo2.name}</label>
                        <if condition="$index%3 eq 0"></div></if>
                    </volist>
                </fieldset>
            </volist>
        </div>
    </div>
</div>
</div>
<script src="__JS__/role.js?v=0.1" type="text/javascript" ></script>
<include file="Public:footer" />
